package com.xiaoyang.ssyx.order.client;

import com.xiaoyang.ssyx.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @AUTHOR XiaoYang
 * @DATE 2023/7/6-16:04
 * @DESCRIPTION TODO
 */
@FeignClient("service-order")
public interface OrderFeignClient {
    //根据orderNo查询订单信息 远程调用(payment)
    @GetMapping("/api/order/inner/getOrderInfo/{orderNo}")
    OrderInfo getOrderInfoByOrderNo(@PathVariable("orderNo") String orderNo);
}
